package com.hbx.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hbx
 * @since 2022-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Resource对象", description="")
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源id")
    @TableId(value = "res_id", type = IdType.AUTO)
    private Integer resId;

    @ApiModelProperty(value = "资源标题")
    private String resTitle;

    @ApiModelProperty(value = "资源说明")
    private String resDesc;

    @ApiModelProperty(value = "资源图片")
    private String resImg;

    @ApiModelProperty(value = "发布时间")
    private Date resPushTime;

    @ApiModelProperty(value = "资源地址")
    private String resUrl;

    @ApiModelProperty(value = "是否加密、如何使用...")
    private String resUrlDesc;

    @ApiModelProperty(value = "标签")
    private String resTags;

    @ApiModelProperty(value = "是否删除")
    private Integer resIsDeleted;

    @ApiModelProperty(value = "资源发布者")
    private Integer resUserid;

    @ApiModelProperty(value = "资源视频地址")
    private String resVideoUrl;

    @ApiModelProperty(value = "资源文档地址")
    private String resDocUrl;

    @ApiModelProperty(value = "资源分类")
    private Integer resType;
}
